﻿<%@ Page Language="C#" Title="项目信息" AutoEventWireup="true" CodeFile="ShowDetails.aspx.cs"
    Inherits="ShowDetails" MasterPageFile="~/BaseInfoMaster.master" %>

<%@ Register Assembly="DevExpress.Web.v10.2.Linq, Version=10.2.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Data.Linq" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.ASPxGridView.v10.2, Version=10.2.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.ASPxEditors.v10.2, Version=10.2.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>
<asp:Content ID="HeadContent" runat="server" ContentPlaceHolderID="head">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <h1 class="DemoTitle">
        管理员 项目信息管理
    </h1>
    <div id="DemoArea">
        <div class="Spacer" style="height: 14px;">
        </div>
        <dx:ASPxGridView ID="ShowDetails_ASPxGridView_ShowInfos" Width="100%" runat="server"
            AutoGenerateColumns="False" KeyFieldName="Project_ID"
            CssFilePath="~/App_Themes/Office2010Silver/{0}/styles.css" CssPostfix="Office2010Silver"
            Style="margin-top: 0px" DataSourceID="SqlDataSource1">
            <SettingsEditing Mode="PopupEditForm" PopupEditFormHorizontalAlign="Center" />
            <SettingsText EmptyDataRow="没有记录" />
            <Columns>
                <dx:GridViewDataTextColumn Caption="上传成果图片" VisibleIndex="1">
                    <CellStyle HorizontalAlign="Center">
                    </CellStyle>
                    <EditFormSettings Visible="False" />
                    <DataItemTemplate>
                        <a href="UpLoadImages/Upload.aspx?id=<%#Eval("Project_ID") %>">选择图片</a>
                    </DataItemTemplate>
                </dx:GridViewDataTextColumn>
                <dx:GridViewDataTextColumn FieldName="Project_ID" ReadOnly="True" VisibleIndex="2"
                    Caption="项目编号">
                    <EditFormSettings Visible="False"></EditFormSettings>
                </dx:GridViewDataTextColumn>
                <dx:GridViewDataTextColumn FieldName="Project_Name" VisibleIndex="3" Caption="项目名称"
                    CellStyle-HorizontalAlign="Center">
                    <PropertiesTextEdit Native="True" Width="300px">
                    </PropertiesTextEdit>
                    <EditFormSettings CaptionLocation="Near" />
                    <CellStyle HorizontalAlign="Center">
                    </CellStyle>
                    <PropertiesTextEdit Native="true" Width="300px">
                    </PropertiesTextEdit>
                    <EditFormSettings CaptionLocation="Near"></EditFormSettings>
                </dx:GridViewDataTextColumn>
                <dx:GridViewDataComboBoxColumn Caption="项目类型" FieldName="Type_ID" VisibleIndex ="4"
                    CellStyle-HorizontalAlign="Center" Name="t_Type_ID">
                    <PropertiesComboBox Native="true" Width="260px" Spacing="0">
                    </PropertiesComboBox>
                    <CellStyle HorizontalAlign="Center">
                    </CellStyle>
                    <EditFormSettings CaptionLocation="Near"></EditFormSettings>
                </dx:GridViewDataComboBoxColumn>
                <dx:GridViewDataComboBoxColumn Caption="所属社区" FieldName="Community_ID" VisibleIndex="5"
                    CellStyle-HorizontalAlign="Center" Name="t_Community_ID">
                    <PropertiesComboBox Native="true" Width="260px" Spacing="0">
                    </PropertiesComboBox>
                    <CellStyle HorizontalAlign="Center">
                    </CellStyle>
                    <EditFormSettings CaptionLocation="Near"></EditFormSettings>
                </dx:GridViewDataComboBoxColumn>
                <dx:GridViewDataTextColumn FieldName="Project_Development" VisibleIndex="6" Caption="项目建设单位"
                    CellStyle-HorizontalAlign="Center">
                    <CellStyle HorizontalAlign="Center">
                    </CellStyle>
                    <PropertiesTextEdit Native="true" Width="300px">
                    </PropertiesTextEdit>
                </dx:GridViewDataTextColumn>
                <dx:GridViewDataMemoColumn Caption="项目基本信息" FieldName="Project_BasicInfo" VisibleIndex="7">
                    <PropertiesMemoEdit Native="True" Width="300px">
                    </PropertiesMemoEdit>
                    <CellStyle HorizontalAlign="Center">
                    </CellStyle>
                </dx:GridViewDataMemoColumn>
                <dx:GridViewDataTextColumn FieldName="Project_CitySubsidy" VisibleIndex="8" Caption="市级补助"
                    CellStyle-HorizontalAlign="Center">
                    <PropertiesTextEdit>
                        <MaskSettings Mask="$&lt;0..99999g&gt;.&lt;00..99&gt;" />
                    </PropertiesTextEdit>
                    <CellStyle HorizontalAlign="Center">
                    </CellStyle>
                    <PropertiesTextEdit Native="true" Width="300px">
                    </PropertiesTextEdit>
                </dx:GridViewDataTextColumn>
                <dx:GridViewDataTextColumn FieldName="Project_DistrictFund" VisibleIndex="9" Caption="区资金补助"
                    CellStyle-HorizontalAlign="Center">
                    <PropertiesTextEdit>
                        <MaskSettings Mask="$&lt;0..99999g&gt;.&lt;00..99&gt;" />
                    </PropertiesTextEdit>
                    <CellStyle HorizontalAlign="Center">
                    </CellStyle>
                    <PropertiesTextEdit Native="true" Width="300px">
                    </PropertiesTextEdit>
                </dx:GridViewDataTextColumn>
                <dx:GridViewDataTextColumn FieldName="Project_FundsTotal" VisibleIndex="10" Caption="项目总经费"
                    CellStyle-HorizontalAlign="Center">
                    <PropertiesTextEdit>
                        <MaskSettings Mask="$&lt;0..99999g&gt;.&lt;00..99&gt;" />
                    </PropertiesTextEdit>
                    <CellStyle HorizontalAlign="Center">
                    </CellStyle>
                    <PropertiesTextEdit Native="true" Width="300px">
                    </PropertiesTextEdit>
                </dx:GridViewDataTextColumn>
                <dx:GridViewDataMemoColumn Caption="项目完成情况" FieldName="Project_Performance" ShowInCustomizationForm="True"
                    VisibleIndex="11">
                    <EditFormSettings CaptionLocation="Near"></EditFormSettings>
                    <PropertiesMemoEdit Native="true" Width="300px">
                    </PropertiesMemoEdit>
                </dx:GridViewDataMemoColumn>
            </Columns>
            <SettingsBehavior AllowDragDrop="false" AllowGroup="true" />
            <Images SpriteCssFilePath="~/App_Themes/Office2010Silver/{0}/sprite.css">
                <LoadingPanelOnStatusBar Url="~/App_Themes/Office2010Silver/GridView/Loading.gif">
                </LoadingPanelOnStatusBar>
                <LoadingPanel Url="~/App_Themes/Office2010Silver/GridView/Loading.gif">
                </LoadingPanel>
            </Images>
            <ImagesFilterControl>
                <LoadingPanel Url="~/App_Themes/Office2010Silver/GridView/Loading.gif">
                </LoadingPanel>
            </ImagesFilterControl>
            <Styles CssFilePath="~/App_Themes/Office2010Silver/{0}/styles.css" CssPostfix="Office2010Silver">
                <Header ImageSpacing="5px" SortingImageSpacing="5px">
                </Header>
                <LoadingPanel ImageSpacing="5px">
                </LoadingPanel>
            </Styles>
            <StylesEditors ButtonEditCellSpacing="0">
                <ProgressBar Height="21px">
                </ProgressBar>
            </StylesEditors>
            <SettingsPager AlwaysShowPager="True">
            </SettingsPager>
            <Settings ShowHorizontalScrollBar="True" />
        </dx:ASPxGridView>
        <dx:LinqServerModeDataSource ID="LinqServerModeDataSource" runat="server" ContextTypeName="DAL.DataClassesDataContext"
            EnableDelete="True" EnableInsert="True" EnableUpdate="True" TableName="ProjectDetails" />
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
            ConnectionString="<%$ ConnectionStrings:ManagerConnectionString3 %>" 
            
            SelectCommand="SELECT * FROM Community INNER JOIN ProjectDetails ON Community.Community_ID = ProjectDetails.Community_ID INNER JOIN TypeInfo ON ProjectDetails.Type_ID = TypeInfo.Type_ID"></asp:SqlDataSource>
    
        <asp:SqlDataSource ID="SqlDataSource2" runat="server"></asp:SqlDataSource>
    
    </div>
</asp:Content>
